home *** CD-ROM | disk | FTP | other *** search
- Path: newshost.lanl.gov!tanmoy
- From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
- Newsgroups: comp.lang.pl1,comp.lang.c
- Subject: Re: PL/I and C
- Date: 24 Feb 1996 04:29:36 GMT
- Organization: Los Alamos National Laboratory
- Message-ID: <TANMOY.96Feb23212936@qcd.lanl.gov>
- References: <4gh5ru$eng@goanna.cs.rmit.EDU.AU> <312CCEB2.4AB7@corp.dialog.com>
- <AD536AAB9668B76CD@mcdialb09.it.luc.edu>
- <312E363C.3CDE@corp.dialog.com>
- NNTP-Posting-Host: qcd.lanl.gov
- Mime-Version: 1.0
- Content-Type: text
- In-reply-to: Paul Gorodyansky's message of Fri, 23 Feb 1996 13:48:44 -0800
-
- In article <312E363C.3CDE@corp.dialog.com>
- Paul Gorodyansky <paul_gorodyansky@corp.dialog.com> writes:
-
- <snip>
- PG: Sorry, you missed my point. If I want to have SEVERAL masks for THE SAME
- PG: area of memory, that is have SEVERAL DIFFERENT Structures overlaid my
- PG: buffer, C has a feature for this - a Union, where I can have members of
- PG: different Nature overlaid the same area of memory, BUT, unlike PL/I, an
- PG: Array CAN NOT be a member of a Union. But, it is always a case in our
- PG: Text Processing - I want to look at my source record's buffer at some
-
- Are you claiming that
- union { int x;
- char y[4]; } z;
- is invalid C? Why?
-
- Cheers
- Tanmoy
-
- --
- tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
- Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
- Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
- <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
- internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
- fax: 1 (505) 665 3003 voice: 1 (505) 665 4733 [ Home: 1 (505) 662 5596 ]
-